﻿namespace Microsoft.VisualStudio.TextTemplating.CommandLine
{
    using System;
    using System.Collections.Specialized;

    internal class CommandOption
    {
        private string name;
        public const string NoName = "";
        private StringCollection values = new StringCollection();

        public CommandOption(string n)
        {
            this.name = n;
        }

        public void Add(string val)
        {
            this.values.Add(val);
        }

        public string Name
        {
            get
            {
                return this.name;
            }
        }

        public string Value
        {
            get
            {
                if (this.values.Count > 0)
                {
                    return this.values[0];
                }
                return string.Empty;
            }
        }

        public StringCollection Values
        {
            get
            {
                return this.values;
            }
        }
    }
}

